package com.iplant.wms.service.basicenum.wms;


import com.iplant.base.po.enums.BaseEnum;

public enum WMSSalesDeliveryStatus implements BaseEnum {
    /**
     * 默认 无须处理
     */
    Default(0, "默认"),

    /**
     * 保存
     */
    Saved(1, "保存"),
    /**
     * 待分拣
     */
    ToBeSorted(2, "待分拣"),
    /**
     * 拣货中
     */
    Picking(3, "分拣中"),
    /**
     * 拣货完成
     */
    PickingDone(4, "拣货完成"),
    /**
     * 部分发货
     */
    PartiallyShipped(5, "部分发货"),
    /**
     * 已出库
     */
    AllShipped(6, "已出库");

    private int value;
    private String label;
    private String remark = "";

    WMSSalesDeliveryStatus(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public static WMSSalesDeliveryStatus getEnumType(int val) {
        for (WMSSalesDeliveryStatus type : WMSSalesDeliveryStatus.values()) {
            if (type.getValue() == val) {
                return type;
            }
        }
        return null;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    @Override
    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
